<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
	$(function(){
		console.log(window.location.search);
		var name=getUrlParam("name");
		console.log(name);
		setCookie("name",name,1);
		console.log(getCookie("name"));
		//location.href="test1.html?name1="+encodeURIComponent(name);
		location.href="test1.html?name1="+name+"&name2="+encodeURIComponent(name);
	})
</script>
</head>
<body>

</body>
</html>